﻿
namespace ItemsViewerDemo
{
    /// <summary>
    /// The class represents the type of sort (Name, Url, ...).
    /// </summary>
    public class SortType : AbstractViewModel
    {
        /// <summary>
        /// Is checked value.
        /// </summary>
        private bool isChecked;

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the SortType is checked.
        /// </summary>
        public bool IsChecked
        {
            get
            {
                return this.isChecked;
            }

            set
            {
                this.isChecked = value;
                OnPropertyChanged(() => this.IsChecked);
            }
        }
    }
}
